package com.hxh.generater.springBoot.util.methodParse.entity;

import lombok.Data;

import java.util.Objects;

@Data
public class MethodBase {
    //方法名
    private String methodName;
    //方法开始行数
    private int startLine;
    //方法结束行数
    private int endLine;
    //方法内容
    private String methodContent;
    //是否重复标志
    private boolean repeat = false;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        MethodBase that = (MethodBase) o;
        return Objects.equals(methodName, that.methodName);
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(methodName);
    }
}
